<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
<html>
<head lang="en">
    <meta charset="UTF-8">
    <title>详情页</title>
    <link rel="stylesheet" href="/WebYiZhi/Template/Home/Css/bootstrap.css"/>
<link rel="stylesheet" href="/WebYiZhi/Template/Home/Css/icheck.css"/>
<script src="/WebYiZhi/Template/Home/Js/jquery-2.1.1.js"></script>
<script src="/WebYiZhi/Template/Home/Js/bootstrap.js"></script>
<script type="text/javascript" src="/WebYiZhi/Public/Framework/hui/lib/jquery.form/3.46.0/jquery.form.js"></script>
<!--[if IE 6]>
<script type="text/javascript" src="lib/DD_belatedPNG_0.0.8a-min.js"></script>
<script>DD_belatedPNG.fix('.pngfix,.icon');</script>
<![endif]-->
<!--[if lt IE 9]>
<script src="http://cdn.bootcss.com/html5shiv/3.7.2/html5shiv.min.js"></script>
<script src="http://cdn.bootcss.com/respond.js/1.4.2/respond.min.js"></script>

<![endif]-->
<script src="/WebYiZhi/Public/layer/layer.js"></script>
<!--自己的css-->
<link rel="stylesheet" href="/WebYiZhi/Template/Home/Css/login.css"/>
<link rel="stylesheet" href="/WebYiZhi/Template/Home/Css/style.css"/>
<script src="/WebYiZhi/Template/Home/Js/message.js"></script>
<script type="text/javascript" src="/WebYiZhi/Template/Home/Js/Validform_v5.3.2_min.js"></script>
<link rel="stylesheet" href="/WebYiZhi/Template/Home/Css/index.css"/>
<script src="/WebYiZhi/Template/Home/Js/Chart.js"></script>
<script src="/WebYiZhi/Template/Home/Js/Chart-1.0.1-beta.4.js"></script>
<script src="/WebYiZhi/Template/Home/Js/index.js"></script>
<script type="text/javascript" src="/WebYiZhi/Public/Framework/hui/lib/My97DatePicker/WdatePicker.js"></script>

</head>
<body>
<div  class="header">
    <div class="header_box">
        <div class="header_cont">
            <div class="head_l lt">您好！欢迎来到移植网</div>
            <div class="head_r rt">
                <span><a href="JavaScript:;"><?php echo ($realname); ?></a>医生，欢迎您回来！</span>
                <span><a href="JavaScript:;">消息</a></span>
                <span><b></b><a href="<?php echo U('DoctorInfo/info');?>">个人中心</a></span>
                <span><a href="<?php echo U('DoctorInfo/loginout');?>">退出</a></span>
            </div>
        </div>
    </div>
</div>

<!--头部开始-->
<div class="mainbox">
    <div class="newsed lf">
        <ul>
            <li class="b_back">患者/待诊疗 <b></b></li>
            <li><a href="javascript:;">张洁患者</a><a href="javascript:;">发来检查报告</a></li>
            <li><a href="javascript:;">张洁患者</a><a href="javascript:;">发来检查报告</a></li>
            <li><a href="javascript:;">张洁患者</a><a href="javascript:;">发来检查报告</a></li>
            <li><a href="javascript:;">张洁患者</a><a href="javascript:;">发来检查报告</a></li>
            <li><a href="javascript:;">张洁患者</a><a href="javascript:;">发来检查报告</a></li>
            <li><a href="javascript:;">张洁患者</a><a href="javascript:;">发来检查报告</a></li>
            <li><a href="javascript:;">张洁患者</a><a href="javascript:;">发来检查报告</a></li>
            <li><a href="javascript:;">张洁患者</a><a href="javascript:;">发来检查报告</a></li>
            <li><a href="javascript:;">张洁患者</a><a href="javascript:;">发来检查报告</a></li>
            <li><a href="javascript:;">张洁患者</a><a href="javascript:;">发来检查报告</a></li>
        </ul>
        <ul>
            <li class="b_back b_news">患者/最新消息 <b></b></li>
            <li><a href="javascript:;">张洁患者</a><a href="javascript:;">发来检查报告</a></li>
            <li><a href="javascript:;">张洁患者</a><a href="javascript:;">发来检查报告</a></li>
            <li><a href="javascript:;">张洁患者</a><a href="javascript:;">发来检查报告</a></li>
            <li><a href="javascript:;">张洁患者</a><a href="javascript:;">发来检查报告</a></li>
            <li><a href="javascript:;">张洁患者</a><a href="javascript:;">发来检查报告</a></li>
        </ul>
        <ul>
            <li class="b_back">患者/已诊断 <b></b></li>
            <li><a href="javascript:;">张洁患者</a><a href="javascript:;">发来检查报告</a></li>
            <li><a href="javascript:;">张洁患者</a><a href="javascript:;">发来检查报告</a></li>
            <li><a href="javascript:;">张洁患者</a><a href="javascript:;">发来检查报告</a></li>
            <li><a href="javascript:;">张洁患者</a><a href="javascript:;">发来检查报告</a></li>
            <li><a href="javascript:;">张洁患者</a><a href="javascript:;">发来检查报告</a></li>
        </ul>
    </div>
    <div class="conts lf">
        <div class="conts_event">
            <p>事件<span class="rt"><?php echo utf8_strcut($troubleinfolist['logtime'],0,10);?></span></p>
            <div class="conts_cot">
                <p>
                    <span><b></b>不适症状：<i><?php echo ($troubleinfolist['troubleinfo']['name']); ?></i></span>
                    <span><b></b>持续时长：<i><?php echo ($troubleinfolist['durationinfo']['name']); ?></i></span>
                </p>
                <p><span>症状描述：<i><?php echo ($troubleinfolist['description']); ?></i></span></p>
                <p> <span><b></b>医生诊断：<i>建议复查，做CT检查，胃镜检查。</i></span></p>
            </div>
        </div>
        <div class="chemical">
            <p>化验记录<span class="rt">20116-12-20<a  href="javascript:;">上一次</a><a href="javascript:;">下一次</a></span></p>
            <div class="chemical_img">
                <span class="lf">化验单：</span>
                <ul class="lf" id="layer-photos-demo">
                    <?php if(is_array($picturelist)): $i = 0; $__LIST__ = $picturelist;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$v): $mod = ($i % 2 );++$i;?><li><img   layer-src="/WebYiZhi/Uploads/<?php echo ($v['cover']); ?>" src="/WebYiZhi/Uploads/<?php echo ($v['cover']); ?>" alt=""/></li><?php endforeach; endif; else: echo "" ;endif; ?>
                </ul>
            </div>
            <div class="chemical_li">
                <ul>
                    <?php if(is_array($inspectionnamelist)): $i = 0; $__LIST__ = $inspectionnamelist;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$v): $mod = ($i % 2 );++$i; if(!$_GET['inspectio']): endif; ?>
                        <?php
 $id=getinspectionid($v['inspectionname']); if($_GET['inspection']=="" and $_GET['indexid']==""){ $_GET['inspection']=$id; $_GET['indexid']=$v['indexid']; }; ?>
                        <li><a <?php if($_GET['inspection'] == $id): ?>class="c_txt"<?php endif; ?>  href="?indexid=<?php echo ($v['indexid']); ?>&inspection=<?php echo ($id); ?>"><?php echo ($v['inspectionname']); ?></a></li><?php endforeach; endif; else: echo "" ;endif; ?>
                </ul>
                <span class="rt">折叠</span>
            </div>
            <div class="chemical_cont">
                <div class="chemical_cont_box"><table class="table text-center table-bordered">
                    <tr class="bg-success">
                        <th class="text-center">检测项</th>
                        <th class="text-center">结果</th>
                        <th class="text-center">参考值</th>
                        <th class="text-center">单位</th>
                        <th class="text-center">操作</th>
                    </tr>
                    <?php $_result=getinspectioncontentlist($_GET['inspection'],$_GET['indexid']);if(is_array($_result)): $i = 0; $__LIST__ = $_result;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$v): $mod = ($i % 2 );++$i;?><tr>
                            <?php
 $arr=explode('-',$v['standardvalue']); foreach($arr as $kk=>$vv){ } ?>
                            <td><?php echo ($v['itemname']); ?></td>
                            <td><?php echo ($v['itemvalue']); ?></td>
                            <td><?php echo ($v['standardvalue']); ?></td>
                            <td><?php echo ($v['dosename']); ?></td>
                            <td>查看</td>
                        </tr><?php endforeach; endif; else: echo "" ;endif; ?>
                </table>
                </div>
            </div>
        </div>
        <div class="daily">
            <p>日常记录<span class="rt"><?php echo ($time); ?></span></p>
            <table class="table text-center table-bordered">
                <tr class="bg-success">
                    <th class="text-center">检测项</th>
                    <th class="text-center">结果</th>
                    <th class="text-center">单位</th>
                    <th class="text-center">操作</th>
                </tr>
                <?php if(is_array($dailyrecordlist)): $i = 0; $__LIST__ = $dailyrecordlist;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$v): $mod = ($i % 2 );++$i;?><tr>
                        <td><?php echo ($v['dailyitem']['name']); ?></td>
                        <td><?php echo ($v['logvalue']); ?></td>
                        <td><?php echo ($v['dailyitem']['dimensionid']); ?></td>
                        <td>查看</td>
                    </tr><?php endforeach; endif; else: echo "" ;endif; ?>
            </table>
        </div>
        <div class="dose">
            <p>服药记录<span class="rt"><?php echo ($time); ?></span></p>
            <table class="table text-center table-bordered">
                <tr class="bg-success">
                    <th class="text-center">药品</th>
                    <th class="text-center">剂量</th>
                    <th class="text-center">规格</th>
                    <th class="text-center">服药时间</th>
                    <th class="text-center">实际时间</th>
                    <th class="text-center">状态</th>
                </tr>
                <?php if(is_array($medicinelist)): $i = 0; $__LIST__ = $medicinelist;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$v): $mod = ($i % 2 );++$i;?><tr>
                        <td style="font-size: 12px"><?php echo ($v['medicineinfo']['name']); ?></td>
                        <td><?php echo ($v['usecount']); ?></td>
                        <td><?php echo ($v['medicineinfo']['dose']); ?></td>
                        <td><?php echo ($v['usetime']); ?></td>
                        <td>09:00</td>
                        <td>
                            <?php if(!$v['hasservedtime']): ?>未服<?php endif; ?>
                        </td>
                    </tr><?php endforeach; endif; else: echo "" ;endif; ?>
            </table>
        </div>
    </div>
    <div class="sick lf">
        <div class="sick_tlt">
            <ul class="treat">
                <li>
                    <a href="javascript:;">诊疗</a>
                    <ul>
                        <li><a href="javascript:;">来院复诊</a></li>
                        <li><a href="javascript:;">调整服药</a></li>
                        <li><a href="javascript:;">保持方案</a></li>
                        <li><a href="javascript:;">手动输入</a></li>
                        <li><a href="javascript:;">请继续检查</a></li>
                        <li><a href="javascript:;">移植肾失功</a></li>
                        <li><a href="javascript:;">诊疗</a></li>
                    </ul>
                </li>
                <li><a href="javascript:;">交流</a></li>
            </ul>
        </div>
        <div class="personal">
            <p class="per_tlt">患者信息</p>
            <ul>
                <li><span>姓名：</span><a href="javascript:;"><?php echo ($operationInfo['patientid']['realname']); ?></a></li>
                <li><span>昵称：</span><a href="javascript:;"><?php echo ($operationInfo['patientid']['nick']); ?></a></li>
                <li><span>性别：</span><a href="javascript:;"><?php if($operationInfo['patientid']['sex']): ?>男<?php else: ?>女<?php endif; ?></a></li>
                <li><span>出生日期：</span><a href="javascript:;"><?php echo utf8_strcut($operationInfo['patientid']['birthday'],0,10);?></a></li>
                <li><span>年龄：</span><a href="javascript:;"><?php echo birthday2($operationInfo['patientid']['birthday']);?></a></li>
                <li><span>血型：</span><a href="javascript:;"><?php echo getfildname(bloodtypeinfo,$operationInfo['patientid']['bloodid']);?></a></li>
                <!--<li><span>患病时长：</span><a href="javascript:;">1年3个月</a></li>-->
                <!--<li><span>手术医院：</span><a href="javascript:;">西京医院</a></li>-->
                <li><span>联系电话：</span><a href="javascript:;"><?php echo ($operationInfo['patientid']['phone']); ?></a></li>
                <li><span>联系地址：</span><a href="javascript:;"><?php echo ($operationInfo['patientid']['address']); ?></a></li>
            </ul>
            <ul class="per_img">
                <li><img src="/WebYiZhi/Uploads/<?php echo ($operationInfo['patientid']['cover']); ?>" alt=""/></li>
                <li><span>手术时间：</span><a href="javascript:;"><?php echo utf8_strcut($operationInfo['operationtime'],0,10);?></a></li>
                <li><span>同供体患者：</span><a href="javascript:;">--</a></li>
                <li><span>器官来源：</span><a href="javascript:;"><?php echo ($operationInfo['kidneysourcetype']['name']); ?></a></li>
            </ul>
            <p class="remark"><span>医生备注：</span><a href="javascript:;">患者血压偏高，症状不稳定，并发症可能
                出现糖尿病</a><b class="rt"></b></p>
        </div>
        <div class="calendar" style="background: purple">
            <img src="/WebYiZhi/Template/Home/Img/calendar.jpg" alt=""/>
        </div>
        <div class="funct_btn">
            <ul>
                <li><a href="javascript:;" onclick="showIframe('','<?php echo U('medcineinfo',array('userid'=>$operationInfo['patientid']['id']));?>','1050','900')">当前药单</a></li>
                <li><a href="javascript:;" onclick="showIframe('','<?php echo U('healthrecord',array('userid'=>$operationInfo['patientid']['id']));?>','1050','900')">档案袋</a></li>
                <li><a href="javascript:;">患者病历</a></li>
                <li><a href="javascript:;">生命史</a></li>
                <li><a href="javascript:;">诊断历史</a></li>
                <li><a href="javascript:;">配型信息</a></li>
            </ul>
        </div>
        <div class="add_event">
            <p class="per_tlt">添加事件</p>
            <div>
                <form action="">
                    <div class="form-group">
                        <label for="">事件日期</label>
                        <input type="date"/>
                    </div>
                    <div class="form-group">
                        <label for="">事件类型</label>
                        <span><input type="radio" name="max"/>一般事件</span>
                        <span><input type="radio" name="max"/>特殊事件</span>
                    </div>
                    <div class="form-group">
                        <label for="">患者可见</label>
                        <span><input type="radio" name="nax"/>患者可见</span>
                        <span><input type="radio" name="nax"/>患者隐藏</span>
                    </div>
                    <div class="form-group">
                        <b></b><textarea name="" id="" cols="30" rows="3" placeholder="请输入事件内容"></textarea>
                    </div>
                    <div class="form-group">
                        <button>取消</button><button>确定</button>
                    </div>
                </form>
            </div>
        </div>
    </div>
</div>
<!--尾部开始-->
<!--尾部开始-->
<div class="footer">
    <div class="navbox">
        <ul>
            <li><a href="<?php echo U('DoctorInfo/index',array('genre'=>1));?>" <?php if($_GET['genre'] == 1): ?>class="footer_txt"<?php endif; ?> <?php if(!$_GET['genre']): ?>class="footer_txt"<?php endif; ?>>首页</a></li>
            <li><a href="<?php echo U('DoctorInfo/index',array('genre'=>2,'type'=>1));?>" <?php if($_GET['genre'] == 2): ?>class="footer_txt"<?php endif; ?>>我的患者</a></li>
            <li><a href="<?php echo U('DoctorInfo/index',array('genre'=>3));?>" <?php if($_GET['genre'] == 3): ?>class="footer_txt"<?php endif; ?>>社区资讯</a></li>
            <li><a href="<?php echo U('DoctorInfo/index',array('genre'=>4));?>" <?php if($_GET['genre'] == 4): ?>class="footer_txt"<?php endif; ?>>个人中心</a></li>
        </ul></div>
    <div class="footer_cont">
        <p>Copyright © 2008-2014 Change360.cn All Rights Reserved 陕西类星体信息科技有限公司</p>
        <p> 地址：陕西省西安市高新区高新一路正信大厦A座204室</p>
    </div>
</div>
<!--尾部结束-->
<!--</footer>-->
<!--<script type="text/javascript" src="/WebYiZhi/Public/Framework/hui/lib/Validform/5.3.2/Validform.min.js"></script>-->
<!--<script type="text/javascript" src="/WebYiZhi/Public/Framework/hui/lib/jquery.form/3.46.0/jquery.form.js"></script>-->
<!--<script type="text/javascript" src="/WebYiZhi/Public/Framework/hui/lib/layer/2.1/layer.js"></script>-->
<!--<script type="text/javascript" src="/WebYiZhi/Public/Framework/hui/lib/layer/2.1/extend/layer.ext.js"></script>-->
<!--<script type="text/javascript" src="/WebYiZhi/Public/Framework/hui/js/H-ui.js"></script>-->
<!--<script type="text/javascript" src="/WebYiZhi/Public/Framework/hui/js/H-ui.admin.js"></script>-->

<!--<script type="text/javascript" src="/WebYiZhi/Public/Framework/hui/lib/ueditor/1.4.3/ueditor.config.js"></script>-->
<!--<script type="text/javascript" src="/WebYiZhi/Public/Framework/hui/lib/ueditor/1.4.3/ueditor.all.min.js"> </script>-->
<!--<script type="text/javascript" src="/WebYiZhi/Public/Framework/hui/lib/ueditor/1.4.3/lang/zh-cn/zh-cn.js"></script>-->
<!--<script type="text/javascript" src="/WebYiZhi/Public/Framework/hui/lib/icheck/jquery.icheck.min.js"></script>-->

<!--<script type="text/javascript" src="/WebYiZhi/Public/Framework/hui/lib/laypage/1.2/laypage.js"></script>-->
<!--<script type="text/javascript" src="/WebYiZhi/Public/Framework/hui/lib/My97DatePicker/WdatePicker.js"></script>-->
<!--<script type="text/javascript" src="/WebYiZhi/Public/Framework/hui/lib/jquery.cookie/jquery.cookie.js"></script>`-->
<script type="text/javascript" src="/WebYiZhi/Template/Home/Js/common.js"></script>
<!--<script type="text/javascript" src="/WebYiZhi/Template/Home/Js/jquery.dataTables.min.js"> </script>-->
<!--<script  type="text/javascript"  src="/WebYiZhi/Template/Home/Js/info.js"></script>-->
<script type="text/javascript" src="/WebYiZhi/Public/Framework/hui/lib/layer/2.1/extend/layer.ext.js"></script>
<script>
    //调用示例
    layer.photos({
        photos: '#layer-photos-demo'
        ,anim: 5 //0-6的选择，指定弹出图片动画类型，默认随机（请注意，3.0之前的版本用shift参数）
    });
</script>
</body>
</html>